package com.lzxzjy.mapper;

import com.lzxzjy.pojo.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {

     Integer insertAdmin(Admin admin);

     Integer deleteByAdminIds(@Param("adminIds") int[] adminIds);

     Integer deleteByAdminId(int adminId);

     Integer updateByAdminId(Admin admin);

     List<Admin> selectAdminByPageAndTerms(@Param("admin") Admin admin, @Param("adminBegin") int adminBegin, @Param("adminSize") int adminSize);

     Integer selectAdminTotalCountByTerms(Admin admin);

     Admin selectAdminNameByUsernameAndPassWord(@Param("username") String username, @Param("password") String password);
}
